class Cat:
    def __init__(self, name, age):
        self.name = name
        self.age = age
    def miao(self):
        print("miao miao miao")

cat = Cat("mimi", 2)
cat.miao()
print(cat.name)